/// \file		WnUtility.cpp
/// \brief		WIND功能类的定义文件
/// \author		xuefeng
/// \version	1.0
/// \date		2011-07-20
/// \history	2011-07-20 新建

#include "ComHeader.h"
#include "WnUtility.h"

WnUtility::WnUtility(void)
{
}

WnUtility::~WnUtility(void)
{
}

uint64_t WnUtility::GetTimeValue()
{
	// 取当前时间字符串(YYYYMMDDThhmmss)
	string strTime(to_iso_string(second_clock::local_time()));
	// 删除T字符
	strTime.erase(strTime.find('T'), 1);
	// 删除年份的前两位
	strTime.erase(0, 2);

	// 转为数字
	return boost::lexical_cast<uint64_t>(strTime);
}
